import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

const store  = new Vuex.Store({
    state:{
        navigationalState:true,
        dlBoole:JSON.parse(localStorage.getItem('IceLion')) || '', // 登录状态
        endState:0, // 0全部 1连载 2完结
    },
    mutations:{
        // 导航的状态
       TaoNav(state,status_nav){
            state.navigationalState = status_nav;
       },
       //存储登录状态
       setUserInfo(state, userInfo) {
            state.dlBoole = userInfo;
       }
    }
})
export default store;